package suanfa.ClassExam;

/**
 * @Author JetZhang
 * @Date 2021/11/9
 */
public class PrintPic6 {
    public static void main(String[] args) {
        int rows = 6;
        for (int i = 0; i < 6; i++) {
            for (int j = 1; j <= rows - i; j++) {
                System.out.print(" ");
            }

            for (int j = 0; j < 9; j++) {
                System.out.print("*");
            }

            for (int j = 0; j < 2 * i - 1; j++) {
                System.out.print(" ");
            }

            for (int j = 0; j < 9; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
